<template>
    <el-menu-item 
    :index="iteminfo.path" 
    :key="iteminfo.path" 
    >
        {{ iteminfo.name  }}
        <!-- 权宜之计
        <router-link :to="iteminfo.path">
            {{ iteminfo.name  }}
        </router-link> -->
    </el-menu-item>
</template>
<script>
    export default {
        props:['iteminfo'],
        mounted(){
            console.log(this.iteminfo.path);
        }
    }
</script>